<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
 *
 *
 *
 * @package     h
 * @subpackage  models
 * @category    models
 * @author      hyw
 * @copyright   copyright (c) 2012
 * @filesource
 */
class Address_street_model extends Base_model {
    protected $_table_name = 'address_street';
    protected $_key_name = 'id';
	
	function get_by_id($id) {
		$this->set_order_by('CONVERT(`name` USING big5),ASC');
		$where['relevance']=$id;
		return $this->fetch(NULL, $where);
	}

    function get_all() {
		return $this->fetch(NULL, $where);
    }
	
}